package org.atovio.quickweb.controller;

import org.atovio.quickweb.vo.Person;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author AtoVio, Winter Yuan
 */
@RestController
public class ParamController {

    /*
    @RequestBody从 请求体 中读取json格式的数据，转为实体类
     */
    @PostMapping("/param/json")
    public String param1(@RequestBody Person person) {
        return "json数据为： " + person;
    }
}
